/*
 * Created on Jan 21, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.user.client;


import org.vectrics.SystemException;
import org.vectrics.VectricsException;
import org.vectrics.common.dom.MarshalUtils;
import org.vectrics.client.webclient.*;
import org.apache.log4j.*;
import org.vectrics.user.Person;
import org.w3c.dom.Element;



public class UpdateUserCommand extends ServerCommandImpl {
	private transient static Logger log = Logger.getLogger(UpdateUserCommand.class);
	private Person user = null;

	
	public UpdateUserCommand(Person person) {
		super();
		this.user = person;
	}

	public String getCommandCode() {
		return("updateUser");
	}
	
	protected void prepareRequestData(Element requestData) {
		Element userElement = null;
		MarshalUtils marshaller = MarshalUtils.getInstance();
		
		marshaller.objectToElement(requestData, user, "user");
	}

	protected void processResponse(Element dataElement) {
		log.debug("processResponse() - translating XML document into user list");
	}

	public void getRequestData(Element requestData) {
			
	}
	

}
